package com.bl.weilan.service.vo.user;

import com.bl.weilan.common.enums.UserStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * Created by liangweikang on 18/3/17.
 */

@Data
@ApiModel(value="UserInfoManageModifyVo", description="用户信息修改请求body", discriminator = "用户信息修改请求body")

public class UserInfoManageModifyVo {

    @NotNull(message = "用户id不能为空")
    @ApiModelProperty(value = "用户id", required = true)
    private String id;

    @Size(max = 30, message = "姓名不能超过20个字")
    @ApiModelProperty(value = "姓名", required = true)
    private String name;

    @ApiModelProperty(value = "头像", required = true)
    private String avatar;

    @Enumerated(EnumType.STRING)
    @ApiModelProperty(value = "用户状态")
    private UserStatus status;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "是否是vip用户")
    private int vip;

    @ApiModelProperty(value = "行业")
    private String institution;

    @ApiModelProperty(value = "联系人姓名")
    private String contacter;
}
